package command.userComm.companyCommand;

import command.Command;
import empty.log.Log;
import empty.users.Company;
import model.log.LogModel;
import model.userModel.CompanyModel;
import server.ServerThread;


public class CompanyUpdateCommand extends Command{

    @Override
    public void excute() {

    }

    @Override
    public void excute(ServerThread st) {
        try {
            Log log = new Log("更改公司信息", st.getUser().getId());
            new LogModel().insertLogUser(log);
            r = new CompanyModel().update((Company) o);
        } catch (Exception ex) {
            e = ex;
            ex.printStackTrace();
        }
    }
}
